export default class end_point extends Laya.Script {
    
    constructor() { super(); }
    
    /**碰撞检测 */
    onTriggerEnter(other:any,self:any,contact:any)
    {
        console.log(other.label)
        if(other.label=="player")
        {
            console.log("game over")
            //分发游戏结束的消息(game_over)
            Laya.stage.event("game_over",["hello",1])
        }
    }

}